﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>实现两个select的同步</title>
    <script type="text/javascript" language="JavaScript">


    </script>
</head>
<body>

<select onchange="selB.options[selectedIndex].selected=true">
    <option>testA1</option>
    <option>testA2</option>
    <option>testA3</option>
    <option>testA4</option>
    <option>testA5</option>
</select>
&nbsp;&nbsp;&nbsp;&nbsp;
<select id="selB">
    <option>testB1</option>
    <option>testB2</option>
    <option>testB3</option>
    <option>testB4</option>
    <option>testB5</option>
</select>

</body>
</html>